#include "clist.h"
#include <vector>
using namespace std;

struct Triangulo // trocar No por int
{	
	No *pto1;
	No *pto2;
	No *pto3;
};

class Mesh2
{
public:
	clist *Mesh2::readfile();
	double calculaModulo (No* noA, No* noB);
	void generateMesh(clist *clistOp , vector<Triangulo*> &listaTri , vector<No> &listaNo, int step);
	double Mesh2::orient2D (No* noA, No* noB , No* noC);
	double Mesh2::inCircle (No* noA, No* noB , No* noC , No* noD); // A positive result means that the point is inside the circle. If the result is equal zero, means that the point is in the boundary of the circle. Negative result is for an outside point.
	double Mesh2::inTriangle (No* noA, No* noB , No* noC , No* noD);
	bool Mesh2::isInside ( No* noA, clist* boundary ); // If the point is inside the boundary the result is true. Retorna verdadeiro para ponto dentro da fronteira.

};

